package com.just.gameapp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.just.gameapp.entity.Match;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author zyr
 * @date 2024/6/18 下午2:55
 * @Description
 */
public interface MatchMapper extends BaseMapper<Match> {
    @Select("select * from matches")
    List<Match> getList();
    @Select("select * from matches where match_time like #{date}")
    List<Match> selectByLikeDate(@Param("date")String date);
}
